#sudo apt install python-pip python3-pip -y
#sudo pip3 install tensorflow-gpu

git clone https://github.com/tensorflow/tensorflow
cd tensorflow
./configure

bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
 
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
 
#https://developer.nvidia.com/cuda-gpus

#This created .whl file in /tmp/tensorflow_pkg
 
sudo pip install /tmp/tensorflow_pkg/tensorflow-1.6.0rc1-cp27-cp27mu-linux_x86_64.whl


